package com.mango.platform.admin.controller;

import com.mango.platform.admin.service.SysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zcx
 * @Title 接口测试
 * @date 2019年09月08日 16:20
 **/
@Api(description = "用户接口")
@RestController
@RequestMapping(value = "/user")
public class SysUserController {

    @Autowired
    private SysUserService sysUserService;

    @ApiOperation(value = "查找用户",notes = "查找所有用户")
    @RequestMapping(value = "/findAll",method = RequestMethod.GET,produces = "application/json")
    public Object findAll() {
        return sysUserService.findAll();
    }

}
